@echo off

set output=mem.o

set armdir=c:\arm
set sdkdir=..\sdk
if exist %output% del %output%


set src_input=mem.c
%armdir%\tcc -c -I"%sdkdir%" -bigend -O2 -apcs /interwork %src_input%
if exist %output% (
	echo ACK: File `%output%` created
) else (
	echo ERR: File `%output%` not created
)


set output=libc.o
if exist %output% del %output%

set src_input=libc.asm
%armdir%\armasm.exe -32 -bi -apcs /interwork -o %output% %options% %src_input%
if exist %output% (
	echo ACK: File `%output%` created
) else (
	echo ERR: File `%output%` not created
)
